package net.ericaro.neojavagen.blocks ;
import net.ericaro.neojavagen.expressions.Expression;
import net.ericaro.neojavagen.blocks.Statement ;

/**
* *<pre> IfThenStatement :
    if ( Expression ) Statement
</pre>
*/
public class IfThenStatement  implements Statement {

Expression expression;
Statement statement ;

public IfThenStatement( Expression expression, Statement statement ){
	this.expression = expression; this.statement = statement ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "if" ).append(" ");
stringbuilder.append( "(" ).append(" ");
stringbuilder.append( this.expression ).append(" ");
stringbuilder.append( ")" ).append(" ");
stringbuilder.append( this.statement ).append(" ") ;
	return stringbuilder.toString();
}

}
